/**
 * @fileOverview 提示接口
 */
// 显示繁忙提示
var showBusy = text => wx.showToast({
    title: text,
    icon: 'loading',
    duration: 10000
});

// 显示成功提示
var showSuccess = text => wx.showToast({
    title: text,
    icon: 'success'
});

// 显示失败提示
var showModel = function(title, content) {
    wx.hideToast();

    wx.showModal({
        title,
        content: JSON.stringify(content),
        showCancel: false
    });
};

var showTipModel = function(title, content) {
    wx.hideToast();
    wx.showModal({
        title,
        content: content,
        showCancel: false
    });
};

module.exports = {
    showBusy: showBusy,
    showSuccess: showSuccess,
    showModel: showModel,
    showTipModel:showTipModel
};